<template>
	<view class="without-page" :style="{ marginTop: marginT }">
		<view class="without-bg"
			style="background-image:url('https://xingangtong.oss-cn-beijing.aliyuncs.com/common/20250626vM0bVA.png')"
			v-if="img == 'content'"></view>
		<view class="without-bg"
			style="background-image:url('https://xingangtong.oss-cn-beijing.aliyuncs.com/common/20250626ovLf3R.png')"
			v-if="img == 'orderNO'"></view>
		<view class="without-bg"
			style="background-image:url('https://xingangtong.oss-cn-beijing.aliyuncs.com/common/202506261ROyd1.png')"
			v-if="img == 'serveNO'"></view>
		<view class="without-bg"
			style="background-image:url('https://xingangtong.oss-cn-beijing.aliyuncs.com/common/20250626oEl2Dy.png')"
			v-if="img == 'messageNO'"></view>
		<view class="without-bg"
			style="background-image:url('https://xingangtong.oss-cn-beijing.aliyuncs.com/common/20250626oEl2Dy.png')"
			v-if="img == 'noteeNO'"></view>

		<view class="without-bg"
			style="background-image:url('https://xingangtong.oss-cn-beijing.aliyuncs.com/common/20250626hzeG7Y.png')"
			v-if="img == 'searchNO'"></view>
		<view class="without-text " v-if="text != ' '">{{ text }}</view>
		<!-- <view class="without-texts color-b6 " v-if="textSmall!=' '">{{ textSmall }}</view> -->
		<slot name="after"></slot>
	</view>
</template>

<script>
export default {
	props: {
		img: {
			type: String,
			default: 'content'
		},

		text: {
			type: String,
			default: '空空如也，没有内容'
		},
		textSmall: {
			type: String,
			default: '暂无数据'
		},
		marginT: {
			type: String,
			default: '0'
		}


	},
	data() {
	}
}
</script>

<style lang="scss">
.without-page {
	height: 80vh;
	// min-height: 600rpx;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: $font-size-base;
	color: $text-light-gray;

	.without-bg {
		width: 474upx;
		height: 296upx;
		background: url(https://mini-client-base-pic.oss-cn-beijing.aliyuncs.com/wx/data_nothing.png) no-repeat center;
		background-size: cover;
		margin-bottom: 30upx;

	}

	.without-text {
		padding: 30rpx 82rpx;
		padding-top: 0;
	}
}
</style>
